<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<body>
	<div>
		<table>
			<tr>
				<th align="left"><h2>Update Location</h2>
				</th>
				<th><a href="<c:url value="/master/location/searchLocation"/>"
					class="bt_green"><span class="bt_green_lft"></span><strong>Back
							to Location List</strong><span class="bt_green_r"></span> </a>
				</th>
			</tr>
			<tr>
				<td colspan="2">
					<form action="<c:url value="detailLocation"/>" method="post">
						<table id="rounded-corner"
							summary="2007 Major IT Companies' Profit">
							<tr>
								<td align="right"><label>Floor:</label></td>
								<td>
									<select name="Floor.floor" id="floor">
										<option value="${location.floor.id }">${location.floor.floorName }</option>
				                	 	<c:forEach var="floor" items="${floors}" varStatus="status">
											<option value="${floor.id }">${floor.floorName }</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							<tr>
								<td align="right"><label>Position:</label></td>
								<td>
									<input type="hidden" class="input" name="id"
									size="40" value="${location.id}"/>
									<input type="text" class="input" name="position"
									size="40" value="${location.position}" /></td>
							</tr>
							<tr>
								<td></td>
								<td align="left">
									<input type="submit" value="Update" class="button" />
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</div>
</body>
</html>
